﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using OT.Data;
using System.ComponentModel.DataAnnotations;
namespace OT.Areas.Instructor.Models
{
    public class AttemptInstructor
    {
        public int? AttemptID { get; set; }
        public int? TestID { get; set; }
        public int? UserID { get; set; }
        public Boolean? IsFinish { get; set; }
        public float Score { get; set; }
        public string user { get; set; }
        public string TestName { get; set; }
        [DataType(DataType.Date, ErrorMessage = "Please enter a valid date.dd/mm/yy"), DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}")]
        public System.DateTime? CreatedDate { get; set; }

        public ICollection<Users> Users { get; set; }
//public ICollection<Tests> Tests { get; set; }
    }
    public class TestResult
    {
        public long AttemptID { get; set; }
        public string SubjectName { get; set; }
        public string TestName { get; set; }
        public int AttemptedQuestions { get; set; }
        public int PositiveMark { get; set; }
        public int NegativeMark { get; set; }
        public int PassingScore { get; set; }
        public int TotalQuestion { get; set; }
        public int TotalMarks { get; set; }
        public int UnAttemptedQuestions { get; set; }
        public int CorrectAnswers { get; set; }
        public int WrongAnswers { get; set; }
        public double Percantage { get; set; }
        public double TotalScore { get; set; }
        public string Result { get; set; }
    }
    //public class TestAttemptDetail
    //{
    //    public int AttemptID { get; set; }
    //    public string TestName { get; set; }
    //    public string StudentName { get; set; }
    //    public Boolean IsFinish { get; set; }
    //    public float Score { get; set; }
    //    public string Result { get; set; }
    //    public DateTime DateofExam { get; set; }
    //}

   
}